import request from '@/utils/request'

// 查询所有三方入金后分账记录列表
export function listSeparateAccounts(query) {
  return request({
    url: '/ecs/separateAccounts/list',
    method: 'get',
    params: query
  })
}

// 查询所有三方入金后分账记录详细
export function getSeparateAccounts(id) {
  return request({
    url: '/ecs/separateAccounts/' + id,
    method: 'get'
  })
}

// 新增所有三方入金后分账记录
export function addSeparateAccounts(data) {
  return request({
    url: '/ecs/separateAccounts',
    method: 'post',
    data: data
  })
}

// 修改所有三方入金后分账记录
export function updateSeparateAccounts(data) {
  return request({
    url: '/ecs/separateAccounts',
    method: 'put',
    data: data
  })
}

// 删除所有三方入金后分账记录
export function delSeparateAccounts(id) {
  return request({
    url: '/ecs/separateAccounts/' + id,
    method: 'delete'
  })
}
